package com.qibao.toolkit.exception;

/**
 * 业务异常 进行业务断言时抛出
 *
 * @author wangcheng
 * @version $Id: MyException.java, v0.1 2018/9/26 18:36 wangcheng Exp $$
 */
public class BusinessException extends RuntimeException {

    /**
     * 记录日志信息
     */
    private String logInfo;


    public BusinessException(String message, String logInfo) {
        super(message);
        this.logInfo = logInfo;
    }

    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }

    public String getLogInfo() {
        return logInfo;
    }

    public void setLogInfo(String logInfo) {
        this.logInfo = logInfo;
    }
}
